<template>
    <div class="contact-container" :style="{ backgroundImage: 'url(' + imageSrc + ')', backgroundSize: 'cover', backgroundPosition: 'center' }">
        <p>{{ contactText }}</p>
    </div>
</template>

<script>
export default {
    data() {
        return {
            contactText: "联系我们: 1234567890",
            imageSrc: require('./联系我们.png')
        };
    }
};
</script>

<style scoped>
.contact-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    min-height: 300px; /* 根据需要调整最小高度 */
}
p {
    color: white;
    font-size: 18px;
    z-index: 1;
    position: relative;
}
</style>